<?python
from worde import plugins
from cherrypy import request
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>${tg.get_config("blog title")}</title>
</head>
<body>
  <div id="content-posts">
    <ol>
      <li py:for="post in posts">
        <h2><a href="${post.permalink}">${post.title}</a></h2>
        <p class="metadata">
          <span class="author">${post.author}</span>
          <span class="date">${post.created}</span>
          <span class="tags">${post.tags}</span>
        </p>
        <p class="content">${XML(plugins.render(post.text, request))}</p>
      </li>
    </ol>
  </div>

</body>
</html>
